package com.ruoyi.experiment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 防火墙规则对象 firewall_rule
 * 
 * @author 邓鑫
 * @date 2023-07-28
 */
public class FirewallRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 防火墙规则id */
    private Long firewallRuleId;

    /** 防火墙规则名称 */
    @Excel(name = "防火墙规则名称")
    private String firewallRuleName;

    /** 协议 */
    @Excel(name = "协议")
    private String agreement;

    /** 动作 */
    @Excel(name = "动作")
    private String action;

    /** 源IP地址/子网 */
    @Excel(name = "源IP地址/子网")
    private String sourceIpAddress;

    /** 目的IP地址/子网 */
    @Excel(name = "目的IP地址/子网")
    private String destinationIpAddress;

    /** 源端口/端口范围 */
    @Excel(name = "源端口/端口范围")
    private String sourcePort;

    /** 目的端口/端口范围 */
    @Excel(name = "目的端口/端口范围")
    private String destinationPort;

    /** 是否共享的 */
    @Excel(name = "是否共享的")
    private String isShare;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String isEnable;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    public void setFirewallRuleId(Long firewallRuleId) 
    {
        this.firewallRuleId = firewallRuleId;
    }

    public Long getFirewallRuleId() 
    {
        return firewallRuleId;
    }
    public void setFirewallRuleName(String firewallRuleName) 
    {
        this.firewallRuleName = firewallRuleName;
    }

    public String getFirewallRuleName() 
    {
        return firewallRuleName;
    }
    public void setAgreement(String agreement) 
    {
        this.agreement = agreement;
    }

    public String getAgreement() 
    {
        return agreement;
    }
    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }
    public void setSourceIpAddress(String sourceIpAddress) 
    {
        this.sourceIpAddress = sourceIpAddress;
    }

    public String getSourceIpAddress() 
    {
        return sourceIpAddress;
    }
    public void setDestinationIpAddress(String destinationIpAddress) 
    {
        this.destinationIpAddress = destinationIpAddress;
    }

    public String getDestinationIpAddress() 
    {
        return destinationIpAddress;
    }
    public void setSourcePort(String sourcePort) 
    {
        this.sourcePort = sourcePort;
    }

    public String getSourcePort() 
    {
        return sourcePort;
    }
    public void setDestinationPort(String destinationPort) 
    {
        this.destinationPort = destinationPort;
    }

    public String getDestinationPort() 
    {
        return destinationPort;
    }
    public void setIsShare(String isShare) 
    {
        this.isShare = isShare;
    }

    public String getIsShare() 
    {
        return isShare;
    }
    public void setIsEnable(String isEnable) 
    {
        this.isEnable = isEnable;
    }

    public String getIsEnable() 
    {
        return isEnable;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("firewallRuleId", getFirewallRuleId())
            .append("firewallRuleName", getFirewallRuleName())
            .append("agreement", getAgreement())
            .append("action", getAction())
            .append("sourceIpAddress", getSourceIpAddress())
            .append("destinationIpAddress", getDestinationIpAddress())
            .append("sourcePort", getSourcePort())
            .append("destinationPort", getDestinationPort())
            .append("isShare", getIsShare())
            .append("isEnable", getIsEnable())
            .append("description", getDescription())
            .toString();
    }
}
